package com.bw.service.impl;

import com.bw.mapper.SysUserPostMapper;
import com.bw.service.SysUserPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserPostServiceImpl implements SysUserPostService {
    @Autowired
    private SysUserPostMapper sysUserPostMapper;

    @Override
    public void add(Integer userId, Integer[] postId) {
        for (Integer integer : postId) {
            sysUserPostMapper.add(userId,integer);
        }
    }
}
